-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove LINQ from product code (1/n) #4725
Conversation
okay but why? |
It is not clear to me why we would want to merge this. It feels like a personal preference. |
Why ? |
you need better hobbies |
this is the 10th PR of its kind, not the first one. if you need background info, start by reading microsoft/kiota-serialization-form-dotnet#142 |
so the why is to fix an issue when building AOT |
"The use of LINQ in enum parsing and serialization code is resulting in unbounded..." |
Also this appears to be a fixed matter according to the links you have posted here and on reddit. |
it is still an ongoing issue. linq usage in kiota (and therefore msgraph) entails massive amount of code compilation in AOT as well as the JIT mode.. |
Thanks for opening this @kasperk81 The code refactors here and in #4726 however does not seem to be related to the AOT scenario as this code is for the generator executable and is will not be included in the generated code and won't be part of the build. It will be executed separately to generate the code which will pull the abstraction libraries which PRs are ongoing. I may have missed some context here (which @baywet can confirm when he gets back), but I believe we do not need this change in this repository for now unless we have changes for the generated code and not the code for the generator itself. |
@andrueastman even kiota's generated code has linq usage and i was planning to cover it in later part of the series. |
@kasperk81 As the LINQ changes here are not really related to the AOT scenarios can I suggest that we
Thoughts? |
opened #4732 |
this had to be done in parts otherwise it won't be reviewable